home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 90 / CD Actual 90.iso / Software3D / PovLab / povlab / PLUGINS / PLUGLIB.ZIP / PLUGINS.H < prev   
Encoding:
C/C++ Source or Header  |  1996-07-20  |  1.6 KB  |  60 lines

  1. #ifndef PLUGINS_H_INCLUDED
  2.  
  3. #include <STDIO.H>
  4.  
  5. typedef float VECTOR[3];
  6.  
  7. #define CYLINDRE     0
  8. #define SPHERE         1
  9. #define CUBE         2
  10. #define CONE         3
  11. #define TORE         4
  12. #define TUBE         5
  13. #define PLANX         6
  14. #define PLANY         7
  15. #define PLANZ         8
  16. #define ANNEAU      14
  17. #define DISQUE      15
  18. #define PRISME      16
  19. #define QTUBE       17
  20. #define CONET       18
  21. #define PYRAMIDE    19
  22. #define DSPHERE     35
  23. #define QTORE       36
  24. #define BLOB        37
  25. #define HFIELD      38
  26.  
  27. #define PAS_CSG 0
  28. #define OK_CSG  1
  29. #define UNION   2
  30. #define INTERSE 3
  31. #define DIFFERE 4
  32. #define MERGE   5
  33. #define INVERSE 6
  34.  
  35. #define _X 0
  36. #define _Y 1
  37. #define _Z 2
  38.  
  39. #define PI 3.14159265358979323846264338327950288419716939937511
  40. #define M_PI PI
  41.  
  42. void make_vector(VECTOR V,float X,float Y,float Z);
  43.  
  44. int write_object(FILE *File,       // Handle to file
  45.                  int Nb,           // Object number Nb
  46.                  int Type,         // Object type Type
  47.                  VECTOR P,         // Aux vector (for some objects)
  48.                  VECTOR S,         // Vector scale <SX,SY,SZ>
  49.                  VECTOR R,         // Vector rotate <RX,RY,RZ>
  50.                  VECTOR T,         // Vector translate <TX,TY,TZ>
  51.                  int C,            // Color of the object (in modeller)
  52.                  char *Texture,    // String for texture's name
  53.                  int Selection,    // Bool if object is selected
  54.                  int Hide,         // Bool if object is hidden
  55.                  char *Name);      // String for object's name
  56.  
  57. #define PLUGINS_H_INCLUDED
  58. #endif
  59.  
  60.